from django.db import models

# Create your models here.
class Cate(models.Model):
    kind=models.CharField(max_length=12)
    address=models.CharField(max_length=12)
    class Meta:
        db_table='cate'

class Facility(models.Model):
    numbers=models.CharField(max_length=12)
    name=models.CharField(max_length=12)
    flag=models.BooleanField(default=True)
    start_time=models.DateField(auto_now_add=True)
    end_time=models.DateField(auto_now_add=True)
    cate=models.ForeignKey(Cate,on_delete=models.CASCADE)
    class Meta:
        db_table='facility'

